<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/base/pages/base.jsp" %>
    <!--添加springsecurity标签库的引入的指令-->  
<%@ taglib prefix="sec"  
    uri="http://www.springframework.org/security/tags"%>  
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
//window.showModalDialog('/test/easyUI1.3.4/demo/datebox/basic.html');
/* $(function(){
  $('#uiform input').each(function () {
            if ($(this).attr('required') || $(this).attr('validType'))
                $(this).validatebox();
        })
 }); */
</script>
<title>My Title</title>
</head>
<body>
 这是首页 , 欢迎   
    <!-- 显示用户登录的用户名-->  
    <sec:authentication property="name" />  
    !   
    <br>  
    <!--对当前用户的权限判断是否是ROLE_ADMIN,则显示标签体的内容-->  
    <sec:authorize ifAllGranted="ROLE_ADMIN">  
        <a href="admin.jsp">amdin click。please。。</a>  
    </sec:authorize>  
    <br />  
    <!--当前用户如果能访问/admin.jsp,则显示标签体的内容-->  
    <sec:authorize url="/admin.jsp">  
        <a href="admin.jsp">进入admin.jsp页面</a>  
    </sec:authorize>  
    <sec:authorize url="/admint.jsp">  
        <a href="admint.jsp">进入admint.jsp页面</a>  
    </sec:authorize>  
    <sec:authorize ifAllGranted="ROLE_ADMIN">  
        <a href="admint.jsp">amdint click。please。。</a>  
    </sec:authorize>  
    <br>
	<a href="${pageContext.request.contextPath}/hs.do?method=sayHi&userName=<sec:authentication property="name" />">SayHi!</a> 
	<br />
	<a href="${pageContext.request.contextPath}/hs.do?method=sayBye&userName=<sec:authentication property="name" />">SayBye!</a>
	<br>
	<a href="<%=path%>/test/main.jsp">框架</a>
<% java.util.Date d = new java.util.Date(); %>
<h1>
Today's date is <%= d.toString() %> and this jsp page worked!
</h1>
<h2>Basic DateBox</h2>
	<div style="margin:10px 0;"></div>
	<input class="easyui-datebox"></input>
	<div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="iconCls:'icon-save'" style="width:400px;height:200px;padding:10px">
		<input class="easyui-datebox"></input>
	</div>
	<form action="" id="uiform input">
	<input id="txtTruename" input class="easyui-validatebox" data-options="required:true,validType:'QQ'"/>
	<input type="submit">
	</form>
</body>
</html>